
/// This file creates the  calculations for manipulation checks that are 
/// mentioned in the text of the appendix.


***** Study 1 MANIPULATION CHECK (mentioned in text of appendix) 

use "Study1_clean.dta", clear


* Immig - immigration treatment moves people on thinking immigration is the most pressing problem
gen manip_lab = 1 if ht_man1 == 2
replace manip_lab = 0 if ht_man1 !=2

* immigration t-test 
ttest manip_lab, by(treat)


***** Study 2 MANIPULATION CHECK (mentioned in text of appendix)

use "Study2_clean.dta", clear

gen man_incR = (man_inc-1)/6

eststo  : reg man_incR treat22 treat23 treat24 trump, robust
eststo  : reg man_incR treat22 treat23 treat24 ageR female incomeR white rel trump college, robust
eststo  : reg man_incR treat22 treat23 treat24 trump if rep == 1, robust
eststo  : reg man_incR treat22 treat23 treat24 ageR female incomeR white rel trump college if rep == 1, robust
eststo  : reg man_incR treat22 treat23 treat24 trump if rep == 0, robust
eststo  : reg man_incR treat22 treat23 treat24 ageR female incomeR white rel trump college if rep == 0, robust
esttab using manipulation_check.tex, ar2 b(3) se(3) starlevels(* 0.1 ** .05 *** .01) label replace
eststo clear
